package com.yuanheng100.asset.consts.person;

/**
 * 性别定义 根据GB/T 2261.1-2003
 */
public enum Gender
{
    UNKNOWN((short) 0, "未知的性别"),

    MAN((short) 1, "男性"),

    WOMAN((short) 2, "女性"),

    NOT_MENTIONED((short) 9, "未说明的性别");

    private Short code;

    private String name;

    private Gender(Short code, String name)
    {
        this.code = code;
        this.name = name;
    }

    public Short getCode()
    {
        return code;
    }

    public void setCode(Short code)
    {
        this.code = code;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }
}
